# FILE: Currency.py
# DESC: Encapsulates currency entity
#

from WebEntity import WebEntity
from infra.logging import logger

class Currency(WebEntity):

	def __init__(self, strRef, symRef, htmlRef):
		WebEntity.__init__(self, name = strRef)
		self.strRef_ = strRef
		self.symRef_ = symRef
		self.htmlRef_ = htmlRef
		log = logger.getLogger()
		log.debug("%s = %s" % (self, self.__dict__))


	def toString(self):
		return self.strRef_ 


	def toSymbol(self):
		return self.symRef_


	def toHTML(self):
		return self.htmlRef_


	def dump(self):
		return self.__dict__
